﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/SystemManagers/SystemManagers.master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Companies And Lecturers
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <span class="titletext">Companies and Lecturers</span>
    <div style="white-space: nowrap; display: table;">
        <div class="container columnStyle">
            <div style="text-align: center;" class="largeText">
                <b>Select item:</b>
            </div>
            <hr />
            <div id="itemTypes">
                <div>
                    <a id="companiesItem" href="#" class="hoverable largeText" onclick="LoadCompaniesList(); return false;">
                        Companies</a>
                </div>
                <div>
                    <a id="lecturerItem" href="#" class="hoverable largeText" onclick="LoadLecturerPracticeList(); return false;">
                        Lecturers for Practice</a>
                </div>
                <div>
                    <a id="studentsItem" href="#" class="hoverable largeText" onclick="LoadStudentGroupsList(); return false;">
                        Students</a>
                </div>
            </div>
        </div>
        <div style="display: inline-block; height: 100%;">
            <div style="display: inline-block; height: 100%;">
                <div id="dataContainer" style="display: table-cell; height: 100%;">
                    <div id="itemList" class="container columnStyle">
                    </div>
                    <div id="propertiesList" class="container columnStyle">
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsContent" runat="server">
    <script language="javascript" type="text/javascript">
        function LoadCompaniesList() {
            $("#propertiesList").html('');
            $("#itemList").load('<%: Url.RouteUrl("Default", new { action = "CompaniesList", controller = "SystemManagers" }) %>');
        }

        function LoadLecturerPracticeList() {
            $("#propertiesList").html('');
            $("#itemList").load('<%: Url.RouteUrl("Default", new { action = "LecturersList", controller = "SystemManagers" }) %>');
        }

        function LoadStudentGroupsList() {
            $("#propertiesList").html('');
            $("#itemList").load('<%: Url.RouteUrl("Default", new { action = "StudentGroupsList", controller = "SystemManagers" }) %>');
        }
    </script>
</asp:Content>
